<?php

/**
 * @Author: zhibinm (113664000@qq.com)
 * @Date:   2018-04-19 09:10:45 
 * @Copyright:   xuebingsi
 * @Last Modified by:   Zhibinm
 * @Last Modified time: 2018-04-19 10:37:05
 */
$a = 90;

// setcookie('xbs','900000');
setcookie('xbs2','asdfsdfsd',time()+3600,'/');

$arr = ['name'=>'学并思','sex'=>'男','age'=>18];

$str = json_encode($arr);

var_dump($str);

$str = serialize($arr);

var_dump($str);

setcookie('username','zhibinm');
setcookie('passwrod','1123456');

// 生命周期 有效
// 
// 作用范围
// 
// 

// setcookie(name, value, expire, path, );